﻿<%@ page language="java" import="java.util.*"
	contentType="text/html; charset=utf-8" pageEncoding="utf-8"%>
<%@include file="/common/taglibs.jsp"%>
<input type="hidden" id="pageNo" value="${page.pageNo }" />
<input type="hidden" id="pageSize" value="${page.pageSize }" />
<input type="hidden" id="totalCount" value="${page.totalCount }" />
<input type="hidden" id="totalPages" value="${page.totalPages }" />
<input type="hidden" id="type" value="${type }"/>
<input type="hidden" id="parentId" value="${parentId }"/>
<c:forEach items="${page.result }" var="folder">
	<li>
		<div class="rfileName">
		<c:if test="${folder.name=='项目文件' }">
				<a href="/folder/childrenFolder/${folder.id}"><i
					class="iconfont icon-iconfontwenjian2copy"></i> <span>${folder.name }</span></a>
		</c:if> 
		<c:if test="${folder.name!='项目文件' }">
			<a href="/file/detail/${folder.id} "><i
				class="iconfont icon-iconfontwenjian2copy"></i> <span>${folder.name }</span></a>
		</c:if> 
		</div>
		<c:if test="${folder.name != '我的文件' && folder.name != '项目文件' }">
		<c:if test="${type!=1 }">
			<div class="rfileBtn">
				<i class="iconfont icon-weibiaoti2fuzhi03" icontip='重新命名'
					data-toggle="modal" data-target="#editFileName"
					dataid="${folder.id }" dataname="${folder.name }"></i> <i
					class="iconfont icon-shanchu2" icontip='删除' data-toggle="modal"
					data-target="${fn:length(folder.fileList) > 0 ? '#hasFolder' : '#deleteFolder'}"
					dataid="${folder.id }"></i>
			</div>
		</c:if>
		</c:if> <c:if test="${folder.name == '我的文件' || folder.name == '项目文件' }">
			<div class="rfileBtn" style="opacity: 0;">
				<i class="iconfont icon-weibiaoti2fuzhi03"></i> <i
					class="iconfont icon-shanchu2"></i>
			</div>
		</c:if>
		<div class="rfileTime">创建时间：${folder.createTime }</div>
		<div class="rfileNum">共${fn:length(folder.childrenList) >0 ? fn:length(folder.childrenList) : fn:length(folder.fileList)}个文件</div>
	</li>
</c:forEach>
